<?php
namespace Product\Form;
 
use Zend\Captcha; 
use Zend\Form\Element; 
use Zend\Form\Form; 
use Zend\InputFilter\Factory as InputFactory; 
use Zend\InputFilter\InputFilter; 
use Zend\InputFilter\InputFilterAwareInterface; 
use Zend\InputFilter\InputFilterInterface;

class ProductForm extends Form //implements InputFilterAwareInterface 

{ 
    public function __construct($name = null) 
    { 
        parent::__construct('product'); 
        
        $this->setAttribute('method', 'post'); 
        
        $this->add(array(
             'name' => 'id',
             'type' => 'Hidden',
         ));
		
		$this->add(array( 
            'name' => 'name', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type product name...', 
                'required' => 'required', 
            ),
        )); 
 
        $this->add(array( 
            'name' => 'description', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type description...', 
                'required' => 'required', 
            ), 
        )); 
		
		$this->add(array( 
            'name' => 'quantity', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type quantity...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'type', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type type...', 
            ), 
        ));
 
		$this->add(array( 
            'name' => 'pricefrequency', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type price...', 
            ), 
        ));
		
		
		$this->add(array( 
            'name' => 'ownedsecurableitem_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type owned...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'account_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type account...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'contact_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type contact...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'opportunity_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type opportunity...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'producttemplate_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type product...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'stage_customfield_id', 
           // 'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'placeholder' => 'Type stage...', 
            ), 
        ));
		
		$this->add(array( 
            'name' => 'sellprice_currencyvalue_id', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array(
				'type'  => 'text',
                'placeholder' => 'Type sellprice...', 
            ), 
        ));
		
		$this->add(array(
            'name' => 'submit',
            'attributes' => array(
                'type'  => 'submit',
                'value' => 'Go',
                'id' => 'submitbutton',
            ),
        ));
		
        
    }
	
	
     
} 
?>